package com.zpark.jsoup;

import org.jsoup.Jsoup;
import org.jsoup.safety.Whitelist;

/**
 * @PackageName: com.zpark.jsoup
 * @ClassName: Demo11
 * @Description:
 * @author: RZS
 * @date: 2021/8/16  0:21
 */
public class Demo11 {
    public static void main(String[] args) {
        String str = "<p><a href='https://y.qq.com' onclick='sendCookiesToMe()'>Link</a></p>";

        String cleanHTML = Jsoup.clean(str, Whitelist.basic());

        System.out.println(cleanHTML);
    }
}
